#include<iostream>
#include<cstring>

using namespace std;

int a,b,c,f=1;
int arr[10];

bool panduan(int num){
    int g,s,b;
    g = num%10;
    b = num/100;
    s = num/10%10;
    arr[g]++;arr[b]++;arr[s]++;
    if(arr[0]||arr[b]>=2||arr[g]>=2||arr[s]>=2) return false;
    return true;
}

int main(){
    scanf("%d %d %d",&a,&b,&c);
    for (int i = 123, j,q,g,s ; i < 1000; i++)
    {
        memset(arr,0,40);
        if(i % a) continue;
        j = i / a * b;
        q = i / a * c;
        
        if(q<1000&&panduan(i)&& panduan(j)&& panduan(q)) {
            f = 0;
            printf("%d %d %d\n",i,j,q);
        }
    }
    if(f) puts("No!!!");

    return 0;
}